package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @Description:
 * @Author:ZTF
 * @Date:2018/5/22 14:37
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_record_photo")
public class RecordPhoto extends BaseModel {

    @Builder
    public RecordPhoto(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, String url, Long recordId, Long noteId) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.url = url;
        this.recordId = recordId;
        this.noteId = noteId;
    }

    @Column
    private String url;
    @Column
    private Long recordId;
    @Column
    private Long noteId;
}
